﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/MiniSite/SiteOrder/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/MiniSite/SiteOrder/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">客户编号</th>
                <td class="formValue">
                    <input id="F_CustomerId" name="F_CustomerId" type="text" class="form-control required" placeholder="请录入客户编号" />
                </td>
                <th class="formTitle">场地或空间编号</th>
                <td class="formValue">
                    <input id="F_SiteId" name="F_SiteId" type="text" class="form-control required" placeholder="请录入场地或空间编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">场地或空间编号</th>
                <td class="formValue">
                    <input id="F_SpaceId" name="F_SpaceId" type="text" class="form-control required" placeholder="请录入场地或空间编号" />
                </td>
                <th class="formTitle">开始时间</th>
                <td class="formValue">
                    <input id="F_StartTime" name="F_StartTime" type="text" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请录入开始时间" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">结束时间</th>
                <td class="formValue">
                    <input id="F_EndTime" name="F_EndTime" type="text" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请录入结束时间" />
                </td>
                <th class="formTitle">场地或空间预定时间</th>
                <td class="formValue">
                    <input id="F_ReserveTime" name="F_ReserveTime" type="text" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请录入场地或空间预定时间" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">订金价</th>
                <td class="formValue">
                    <input id="F_OrderPrice" name="F_OrderPrice" type="text" class="form-control required" placeholder="请录入订金价" />
                </td>
                <th class="formTitle">订单价</th>
                <td class="formValue">
                    <input id="F_Price" name="F_Price" type="text" class="form-control required" placeholder="请录入订单价" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">订单总价</th>
                <td class="formValue">
                    <input id="F_TotalPrice" name="F_TotalPrice" type="text" class="form-control required" placeholder="请录入订单总价" />
                </td>
                <th class="formTitle">状态0未付款1已付款2已付订金3已完成4退款中5已退款</th>
                <td class="formValue">
                    <input id="F_Status" name="F_Status" type="text" class="form-control required" placeholder="请录入状态0未付款1已付款2已付订金3已完成4退款中5已退款" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">是否开发票</th>
                <td class="formValue">
                    <input id="F_IsInvoice" name="F_IsInvoice" type="text" class="form-control required" placeholder="请录入是否开发票" />
                </td>
                <th class="formTitle">是否公开活动</th>
                <td class="formValue">
                    <input id="F_IsPublic" name="F_IsPublic" type="text" class="form-control required" placeholder="请录入是否公开活动" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">是否评论</th>
                <td class="formValue">
                    <input id="F_IsComment" name="F_IsComment" type="text" class="form-control required" placeholder="请录入是否评论" />
                </td>
                <th class="formTitle">订单留言</th>
                <td class="formValue">
                    <input id="F_Remark" name="F_Remark" type="text" class="form-control required" placeholder="请录入订单留言" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">排序</th>
                <td class="formValue">
                    <input id="F_Sort" name="F_Sort" type="text" class="form-control required" placeholder="请录入排序" />
                </td>
                <th class="formTitle"></th>
                <td class="formValue"></td>
            </tr>
        </table>
    </div>
</form>


